<template>
  <div class="block" style="width:100%;">
    <el-carousel height="352px">
      <el-carousel-item v-for="item in url" :key="item">
        <el-image
            style="width:100%; height: 352px"
            :src="item"
        ></el-image>
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
import banner2 from '@/assets/img/banner2.png'
import banner3 from '@/assets/img/banner3.png'
import banner4 from '@/assets/img/banner4.png'
import banner5 from '@/assets/img/banner5.png'
export default {
  name: "CRCarousel",
  data(){
    return{
      url:[banner2,banner3,banner4,banner5]
    }
  }
}
</script>

<style scoped>
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n+1) {
  background-color: #d3dce6;
}
</style>